package com.example.sys.entity.po;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;

/**
 * 用户角色表(SysUserRole)实体类
 *
 * @author makejava
 * @since 2022-03-10 11:03:41
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
@Entity
@Table(name="sys_user_role")
public class SysUserRole implements Serializable {
    private static final long serialVersionUID = 605481834855561074L;
    /**
    * 主键
    */
    @Id
    private Long userRoleId;
    /**
    * 用户id
    */
    private Long userId;
    /**
    * 角色id
    */
    private Long roleId;
}